﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Common.Data.Extensions;
using DataCenter.Configuration;
using DataCenter.Model.Model;

namespace DataCenter.Data.DBConfig
{
    public class IncentiveAdhocConfiguration : DBConfig<IncentiveAdhoc>
    {
        public IncentiveAdhocConfiguration()
            : base(SystemConfiguration.Schema, SystemConfiguration.NamingType, SystemConfiguration.TABLE_PREFIX)
        {
            HasKey(k =>  k.SchemeId);
            Property(c => c.SchemeId).HasMaxLength(12).IsRequired();
            Property(c => c.SchemeName).HasMaxLength(100).IsRequired();
            Property(c => c.StartDate).IsRequired();
            Property(c => c.EndDate).IsRequired();
            Property(c => c.UpdateDate).IsRequired();
            Property(c => c.CreateDate).IsRequired(); 
        }
    }
}
